namespace eg._delegate;
delegate string dg(string str);
delegate void Eg_Delegate1(string msg);
delegate void Eg_Delegate2();

[System.Diagnostics.DebuggerStepThrough]
public class Eg_Delegate
{
    public string fn(string str)// 函数签名与dg相同
    {
        Console.WriteLine(str);
        return str;
    }
    [Obsolete]
    public void AHeavyJob()
    {
        Thread.Sleep(2000);
    }
    public void MyCallback(string str)
    {
        Console.WriteLine(str);
    }
}
